#ifndef FOLDERSLISTWINDOW_H
#define FOLDERSLISTWINDOW_H

#include <QtGui/QMainWindow>
#include <QTreeWidget>
#include <QDesktopWidget>

#include "inputfolderdialog.h"
#include "listwindow.h"

namespace Ui {
    class foldersListWindow;
}

class foldersListWindow : public QMainWindow {
    Q_OBJECT
public:
    foldersListWindow(QWidget *parent = 0);
    ~foldersListWindow();

    void run_form();

protected:
    void changeEvent(QEvent *e);

private:
    Ui::foldersListWindow *m_ui;
    QString getLastSourceFolder() const;
    void setLastSourceFolder( const QString &path );
    bool isSuchPath( const QString &path );

private slots:
    void on_treeWidget_itemChanged(QTreeWidgetItem* item, int column);
    void on_removeButton_clicked();
    void on_cancelButton_clicked();
    void on_proceedButton_clicked();
    void on_addFolderButton_clicked();
    void on_addFtpButton_clicked();

    void addPathToList( const QString&, const QString& );
    void addPathToList( ftpInfo* );
};

#endif // FOLDERSLISTWINDOW_H
